//
//  InfoController.h
//  ArchivingObjs
//
//  Created by Wang Shao-chuan on 2010/12/28.
//  Copyright 2010 National Taiwan University. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import <Foundation/Foundation.h>
#import "PersonInfo.h"

@interface InfoController : NSObject {
	IBOutlet NSTextField *mGreetingText;
	IBOutlet NSTextField *mNickname;
	IBOutlet NSDatePicker *mDatePicker;
	IBOutlet NSMatrix *mGenderRadioButton;
	IBOutlet NSTextField *mAgeText;
	IBOutlet NSSlider *mAgeSlider;
	
	PersonInfo *mInfo;
	BOOL bSaved;
}
-(IBAction) save: (id) sender;
-(IBAction) clear: (id) sender;
-(IBAction) ageTextChanged: (id) sender;
-(IBAction) ageSliderChanged: (id) sender;
-(IBAction) contentsChanged: (id) sender;
-(void) initSlider;
-(void) updateUI;
-(NSString *) defaultFilePath;
@end
